package edu.sctu.practice.class02.lvchang.myCourse;

/**
 * Created by Administrator on 2015/11/5.
 */
public class Course {

    protected String course;

    public Course(String course) {
        this.course = course;
    }

    public void openComputer() {
        System.out.println("Open my computer");
    }

    public void study() {
        System.out.println("learn " + course);
    }

    public void closeComputer() {
        System.out.println("Close my computer");
    }

    public void process() {
        openComputer();
        study();
        closeComputer();
    }
}

